package com.atguigu.gmall.order.client;


import com.atguigu.gmall.product.client.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name = "service-order")
public interface OrderFeignClient {

    //查询商品清单
    @GetMapping("/api/order/trade")
    public Map<String, Object> trade();

    //根据订单Id 查询订单对象
    @GetMapping("/api/order/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable Long orderId);

}
